package com.dd.poetry.net

import com.dd.common.data.UserData
import com.dd.lnetwork.RetrofitHelperAbs

class MainRetrofitHelper private constructor() : RetrofitHelperAbs<MainApi>(
    UserData.getPhoneDeviceId(),
    UserData.getToken(),
    UserData.getCookies()
) {
    companion object {
        private var instance: MainRetrofitHelper? = null
        fun getInstance(): MainRetrofitHelper {
            return instance ?: synchronized(this) {
                instance ?: MainRetrofitHelper().apply { instance = this }
            }
        }
    }
}